﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace MyExplorer
{
    class process
    {
        // These are the Win32 error code for file not found or access denied.

        /// <summary>
        /// Prints a file with a .doc extension.
        /// </summary>
        public void Print(string myDocumentsPath)
        {
            Process myProcess = new Process();

            try
            {
                // Get the path that stores user documents.
                myProcess.StartInfo.FileName = myDocumentsPath;
                //myProcess.StartInfo.Verb = "Print";
                //myProcess.StartInfo.CreateNoWindow = true;
                myProcess.Start();
            }
            catch (Exception e)
            {
            }
        }
    }
}
